home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
bindkey.z
/
bindkey
Wrap
Text File
|
1998-10-20
|
8KB
|
199 lines
BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111)))) BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111))))
NNNNAAAAMMMMEEEE
bindkey - function key binding facility for use with _x_w_s_h(1G)
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
bbbbiiiinnnnddddkkkkeeeeyyyy [ ----rrrr key[,binding] ... ]
bbbbiiiinnnnddddkkkkeeeeyyyy [ ----llll key[,binding] ... ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_b_i_n_d_k_e_y is a program which provides an interface to the _x_w_s_h(1G) function
key binding facilities.
_k_e_y is the name of a key on the keyboard; type _b_i_n_d_k_e_y without arguments
to obtain a list of valid keys. The following are valid _b_i_n_d_k_e_y keys:
ffff1111 ffff2222 ffff3333 ffff4444 ffff5555 ffff6666
ffff7777 ffff8888 ffff9999 ffff11110000 ffff11111111 ffff11112222
pppprrrriiiinnnntttt----ssssccccrrrrnnnn ssssccccrrrroooollllllll----lllloooocccckkkk ppppaaaauuuusssseeee
iiiinnnnsssseeeerrrrtttt hhhhoooommmmeeee ppppaaaaggggeeee----uuuupppp
eeeennnndddd ppppaaaaggggeeee----ddddoooowwwwnnnn lllleeeefffftttt----aaaarrrrrrrroooowwww
uuuupppp----aaaarrrrrrrroooowwww ddddoooowwwwnnnn----aaaarrrrrrrroooowwww rrrriiiigggghhhhtttt----aaaarrrrrrrroooowwww
_b_i_n_d_i_n_g is the text string which the key is bound to. The text of the
binding argument must be in the printable character set. Using the "\"
character, other character codes can be made a part of the binding. The
following backslash sequences are supported: \n, \r, \t, \b, \\, and \xxx
where xxx is an octal number.
It is important to remember that the binding text is interpreted by the
shell you are using before it is passed to _b_i_n_d_k_e_y on the command line
(this usually means that extra \s are required). For remote bindings,
the text is interpreted a second time when the key bound to the text is
pressed and then interpreted by the application currently reading tty
input. See the _c_s_h(1) and _s_h(1) man pages for rules concerning escape
sequences for special characters, such as newline (\n).
The ----rrrr option binds the text string to the given key. When the key is
pressed, the data is sent to the process that _x_w_s_h is managing (such as
the shell).
The ----llll option performs the same binding as ----rrrr, except that the text
string defines a function internal to _x_w_s_h. When the key is pressed, the
local binding is executed by _x_w_s_h directly, and not passed on to the
program that _x_w_s_h is managing.
The set of local _x_w_s_h functions and their keywords are listed below.
ddddoooowwwwnnnn----lllliiiinnnneeee scroll the view one line, as if the down arrow button on the
scroll bar was clicked.
PPPPaaaaggggeeee 1111
BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111)))) BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111))))
ddddoooowwwwnnnn----ppppaaaaggggeeee scroll the view down one page, as if the up arrow button on
the scroll bar was clicked while the Shift key was pressed.
eeeennnndddd scroll the view to the bottom of the _x_w_s_h contents, as if the
scroll bar was clicked at the bottom.
hhhhoooommmmeeee scroll the view to the top of the _x_w_s_h contents, as if the
scroll bar was clicked at the top.
ppppoooopppp pop the window to the front.
ppppuuuusssshhhh push the window to the back.
sssseeeennnndddd send the contents of the cut buffer to the process that _x_w_s_h
is managing. The data is sent as if the user typed it.
ttttoooogggggggglllleeee----rrrreeeeddddiiiirrrreeeecccctttt
Toggle the output redirect (only valid when _x_w_s_h is run with
the -R option). If the _x_w_s_h output was redirected to the
secondary device, the output is redirected back to the _x_w_s_h
window. If the output was directed to the _x_w_s_h window,
redirect it to the secondary device.
uuuupppp----lllliiiinnnneeee scroll the view one line, as if the up arrow button on the
scroll bar was clicked.
uuuupppp----ppppaaaaggggeeee scroll the view up one page, as if the up arrow button on the
scroll bar was clicked while the Shift key was pressed.
_x_w_s_h has the following default local bindings (see above):
The ffff4444 key is bound to the local sssseeeennnndddd function.
The hhhhoooommmmeeee key is bound to the local hhhhoooommmmeeee function.
The eeeennnndddd key is bound to the local eeeennnndddd function.
The ppppaaaaggggeeee----uuuupppp key is bound to the local uuuupppp----ppppaaaaggggeeee function.
The ppppaaaaggggeeee----ddddoooowwwwnnnn key is bound to the local ddddoooowwwwnnnn----ppppaaaaggggeeee function.
If no _b_i_n_d_i_n_g is provided, then _b_i_n_d_k_e_y will restore the key to its
default global binding.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
The following example of remote binding performs the command `ls -l' when
the F1 key is pressed:
bindkey -r f1,'ls -l\n'
The following example of local binding scrolls the _x_w_s_h display up one
line when the up-arrow on the cursor control pad is pressed.
PPPPaaaaggggeeee 2222
BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111)))) BBBBIIIINNNNDDDDKKKKEEEEYYYY((((1111))))
bindkey -l up-arrow,up-line
The following example reverts the binding on the F1 function key to the
system default:
bindkey -r f1
WWWWAAAARRRRNNNNIIIINNNNGGGG
_b_i_n_d_k_e_y provides a restricted interface which will be adjusted when the
underlying key binding facility is completed.
NNNNOOOOTTTTEEEE
By default, xwsh key binding is disabled. See the description of the
----bbbbiiiinnnnddddkkkkeeeeyyyy2222ddddccccssss option in the xwsh man page.
BBBBUUUUGGGGSSSS
There is currently no way to query a binding. There is no information
around that describes what the "original default global bindings" are.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
xwsh (1G), sh (1), csh (1)
PPPPaaaaggggeeee 3333